package com.panshi.service;

import com.panshi.entity.AppUser;
import com.panshi.service.impl.AppUserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
//@FeignClient(value = "hasbei-user-provider", fallbackFactory = AppUserClientFallback.class)
@FeignClient(value = "hasbei-user-provider")
public interface FeignAppUserClient {

    @GetMapping("app-user/info/{userId}")
    public AppUser queryUserInfo(@PathVariable Integer userId);

}
